import request from "@/utils/request";
export function getTransferAccountsBatches(params) {
  return request({
    url: "/hr/api/v1/transferAccountsBatches",
    method: "GET",
    params
  });
}
export function paySalary(data) {
  return request({
    url: "/hr/api/v1/transferAccountsBatches/zfbStartTransferAccounts",
    method: "POST",
    data
  });
}

export function getAccountList(params) {
  return request({
    url: "/hr/api/v1/transferAccountInfos/selectVxAccountMoney",
    method: "GET",
    params
  });
}

export function generateZfbMoneyToBookUrl(transferAccountInfoId, money) {
  return request({
    url: `/hr/api/v1/transferAccountInfos/generateZfbMoneyToBookUrl/${transferAccountInfoId}/${money}`,
    method: "GET"
  });
}
export function getAccountListZFB(params) {
  return request({
    url: "/hr/api/v1/transferAccountInfos/selectZfbSafetyAccountMoney",
    method: "GET",
    params
  });
}

export function getAccountListBank(params) {
  return request({
    url: "/hr/api/v1/transferAccountInfos/selectPingAnBankAccountMoney",
    method: "GET",
    params
  });
}
export function deleteAccount(transferAccountsBatchId) {
  return request({
    url: `/hr/api/v1/transferAccountsBatches/${transferAccountsBatchId}`,
    method: "delete"
  });
}
